<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AdminLog extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('admin_log', function (Blueprint $table) {
            $table->increments('id');
            $table->string('content')->comment('操作内容');
            $table->integer('createtime')->unsigned()->comment('发生时间');
            $table->string('admin_name');
            $table->mediumInteger('admin')->unsiged()->default(0)->comment('管理员id');
            $table->string('ip')->comment('IP');
            $table->string('url')->default('')->comment('act&op');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('admin_log');
    }
}
